import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { DragulaModule} from 'ng2-dragula'

import { AppComponent } from './app.component';
import { ScheduleListComponent } from './schedule-list/schedule-list.component';
import { ScheduleService } from './service/schedule.service';
import { HttpClientModule } from '@angular/common/http';
import { ScheduleComponent } from './schedule/schedule.component';
import { ScheduleBoxComponent } from './schedule-box/schedule-box.component';
import { ScheduleSaveDialogComponent } from './schedule-save/schedule-save.component';
import { ScheduleMenuComponent } from './schedule-menu/schedule-menu.component';
import { MatDialogModule } from '@angular/material/dialog';
import { MatFormFieldModule } from '@angular/material/form-field';
import {
  MatInputModule,
  MatSelectModule,
  MatOptionModule,
  MatIconModule,
  MatDatepickerModule,
  MatNativeDateModule,
  MatTabsModule,
} from '@angular/material';

import { FormsModule, ReactiveFormsModule} from '@angular/forms';

import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ScheduleArchiveComponent } from './schedule-archive/schedule-archive.component';
import { AuthComponent } from './auth/auth.component';
import { AuthService } from './service/auth.service';
import { TokenStorageService } from './service/storage.service';
@NgModule({
  declarations: [
    AppComponent,
    ScheduleListComponent,
    ScheduleComponent,
    ScheduleBoxComponent,
    ScheduleSaveDialogComponent,
    ScheduleMenuComponent,
    ScheduleArchiveComponent,
    AuthComponent,
  ],
  imports: [
    BrowserModule,
    HttpClientModule,
    DragulaModule,
    MatDialogModule,
    MatFormFieldModule,
    MatSelectModule,
    MatOptionModule,
    FormsModule,
    MatInputModule,
    MatIconModule,
    MatDatepickerModule,
    MatNativeDateModule,
    MatTabsModule,
    ReactiveFormsModule,
    BrowserAnimationsModule,
  ],  
  entryComponents: [ScheduleSaveDialogComponent],
  providers: [ScheduleService, AuthService, TokenStorageService],
  bootstrap: [AppComponent]
})
export class AppModule { }
